package com.example.octopus.service;

import com.example.octopus.entity.returnMessage.DeleteReturnMessage;
import com.example.octopus.entity.returnMessage.InsertReturnMessage;
import com.example.octopus.entity.Product;
import com.example.octopus.entity.returnMessage.SelectReturnMessage;
import com.example.octopus.entity.returnMessage.UpdateReturnMessage;

import java.util.List;
import java.util.Map;

public interface ProductService {
    public InsertReturnMessage insert(String env,List<Product> product);
    public DeleteReturnMessage delete(String env, Map<String, Object> condition);
    public SelectReturnMessage select(String env, Map<String, Object> condition,int page);

    SelectReturnMessage select(String env, Map<String, Object> condition);

    public UpdateReturnMessage update(String env, String docId, Product product);

    SelectReturnMessage selectAll(String env, int page);

    List<Product> selectByTitle(String env, String keyword, int page);
}
